package mapper;

import bean.Emp;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmpMapper {
     List<Emp> find1(String ename);
     List<Emp> find2(Emp emp);
     List<Emp> find3(Double sal);
     List<Emp> find4(String ename);
     void update(Emp emp);
     List<Emp> find5(String[] array);


     //开始做案例部分
//     @Select("select * from emp where empstate=1")
     List<Emp> find(Emp emp);

     @Select("select distinct job from emp where empstate=1")
     List<String> allJob();
}
